package com.gongj.annotation;

import com.gongj.bean.User;
import org.springframework.beans.factory.annotation.Lookup;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.stereotype.Service;

import java.util.function.Supplier;


public class AnnotationMain {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(AppConfig.class);
		TestController bean = ctx.getBean(TestController.class);
		TestController bean1 = ctx.getBean(TestController.class);
		//bean.print();

	}
}
